package com.example.ffmpegdemo;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    private FFmpegUtil fFmpegUtil;
    private TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        fFmpegUtil = new FFmpegUtil();
        textView = findViewById(R.id.textview);
    }

    public void format(View view){
        textView.setText(fFmpegUtil.avformatinfo());
    }

    public void codec(View view){
        textView.setText(fFmpegUtil.avcodecinfo());
    }

    public void filter(View view){
        textView.setText(fFmpegUtil.protocols());
    }

    public void config(View view){
        textView.setText(fFmpegUtil.bsf());
    }
}